import request from '@/utils/request'
import request_U9 from '@/utils/request_U9'

export const MaterialReceivingQuery = (Code) => {
	return request({
		url: '/development/v9/Material/Receiving/Query',
		method: 'get',
		params: {
			Code
		}
	})
}

export const MaterialInformationQuery = (ScanMaterialsText,production) => {
	return request({
		url: '/development/v9/Material/Information/Query',
		method: 'get',
		params: {
			ScanMaterialsText,production
		}
	})
}

export const MaterialInformationSave = (data) => {
	return request({
		url: '/development/v9/Material/Information/wmsSave',
		method: 'post',
		data: data
	})
}

export const QueryIssueInfoByIssueDocNo = (IssueDocNo) => {
	return request_U9({
		url: '/api/Issue/QueryIssueInfoByIssueDocNo',
		method: 'get',
		params: {
			IssueDocNo
		}
	})
}

export const NewQuery = (MoDocNo,ItemCode,OpNum) => {
	return request({
		url: '/development/v9/Material/Information/NewQuery',
		method: 'get',
		params: {
			MoDocNo,ItemCode,OpNum
		}
	})
}
